#include "devicelist.h"
using namespace SerialPortInterface;

DeviceList::DeviceList() {
  list<Device>();

  for ( boost::filesystem::directory_iterator i("/dev/");
	i != boost::filesystem::directory_iterator();
	++i) 
    if ( boost::algorithm::istarts_with( i->leaf(), "tty"))
      push_back( i->leaf() );
  
  sort();
}


